package com.hongyi.utils.collections;

import org.apache.poi.hssf.record.DVALRecord;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * @Author: hongyi
 * @CreateTime: 2024-10-21
 */


public class CollectionsExample {
    public static void main(String[] args) {
        // ArrayList 示例
        ArrayList<String> list = new ArrayList<>();
        list.add("Apple");
        list.add("Banana");
        System.out.println("ArrayList: " + list);

        // HashMap 示例
        HashMap<String,Integer> map = new HashMap<>();
        map.put("Apple", 90);
        map.put("Banana", 85);
        System.out.println("HashMap: " + map);
    }
}
